<template>
  <div class="layerbg ">
    <div class="fixContent" :class="`style-${type}`">
      <div class="title">
        <slot name="title"></slot>
      </div>
      <div class="tag">
        <div class="tagList">
          <slot name="tag"></slot>
        </div>
      </div>
      <div class="shuoming">
        <div>
          <slot name="shuoming"></slot>
        </div>
      </div>
      <div class="hezuo">
        <div class="sign">
          <img src="@/assets/sign.png" alt="">
          <div>出品单位:</div>
        </div>
        <div>
          <slot name="danwei"></slot>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  props: {
    type: {
      type: String,
      default: "html5"
    }
  }
};
</script>

<style lang="less">
.fixContent {
  width: 320px;
  min-height: 320px;
  background: #e9e9e9;
  position: absolute;
  // transform: translate(-50%, -50%);
  // top: 150px;
  // left: 85%;
  border-radius: 15px;
  padding: 10px 20px;
  box-sizing: border-box;
  &:after {
    content: "";
    width: 290px;
    height: 15px;
    background: #fff;
    position: absolute;
    top: -15px;
    left: 5%;
    border-radius: 15px 15px 0 0;
    z-index: -1;
  }
  &.style-html5 {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  &.style-longPic {
    right: 100px !important;
    top: 8% !important;
  }
  &.style-poster {
    right: 100px !important;
    top: 8% !important;
  }
  &.style-video {
    right: 100px !important;
    top: 8% !important;
  }
  div {
    padding: 10px 0;
  }
  .title {
    position: relative;
    // border: 1px solid;
    width: 100%;
    font-size: 30px;
    text-align: justify;
    overflow-wrap: break-word;
  }
  .tag {
    display: flex;
  }
  .shuoming {
    font-size: 14px;
  }
  .hezuo {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: start;
    font-size: 12px;
    .sign {
      display: flex;
      align-items: center;
      img {
        width: 25%;
        height: 100%;
        padding: 0 5px;
      }
    }
  }
}
</style>